package com.ruoyi.park.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.park.mapper.HouseParkMapper;
import com.ruoyi.park.domain.HousePark;
import com.ruoyi.park.service.IHouseParkService;

/**
 * 园区表Service业务层处理
 * 
 * @author hct
 * @date 2022-02-16
 */
@Service
public class HouseParkServiceImpl implements IHouseParkService 
{
    @Autowired
    private HouseParkMapper houseParkMapper;

    /**
     * 查询园区表
     * 
     * @param id 园区表主键
     * @return 园区表
     */
    @Override
    public HousePark selectHouseParkById(Long id)
    {
        return houseParkMapper.selectHouseParkById(id);
    }

    /**
     * 查询园区表列表
     * 
     * @param housePark 园区表
     * @return 园区表
     */
    @Override
    public List<HousePark> selectHouseParkList(HousePark housePark)
    {
        return houseParkMapper.selectHouseParkList(housePark);
    }

    /**
     * 新增园区表
     * 
     * @param housePark 园区表
     * @return 结果
     */
    @Override
    public int insertHousePark(HousePark housePark)
    {
        return houseParkMapper.insertHousePark(housePark);
    }

    /**
     * 修改园区表
     * 
     * @param housePark 园区表
     * @return 结果
     */
    @Override
    public int updateHousePark(HousePark housePark)
    {
        return houseParkMapper.updateHousePark(housePark);
    }

    /**
     * 批量删除园区表
     * 
     * @param ids 需要删除的园区表主键
     * @return 结果
     */
    @Override
    public int deleteHouseParkByIds(Long[] ids)
    {
        return houseParkMapper.deleteHouseParkByIds(ids);
    }

    /**
     * 删除园区表信息
     * 
     * @param id 园区表主键
     * @return 结果
     */
    @Override
    public int deleteHouseParkById(Long id)
    {
        return houseParkMapper.deleteHouseParkById(id);
    }
}
